<template>
	<!-- 我是供货商我有商品入驻 -->
	<!-- 我是店铺我开店 -->
	<!-- 店铺入驻协议 -->
	<view class="page_box">
		<view class="content" style="padding: 30rpx;">
			<text v-html="content"></text>
			
			
		</view>
		<!-- 自定义底部导航 -->
		<shopro-tabbar></shopro-tabbar>
		<!-- 关注弹窗 -->
		<shopro-float-btn></shopro-float-btn>
		<!-- 连续弹窗提醒 -->
		<shopro-notice-modal></shopro-notice-modal>
		<!-- 登录提示 -->
		<shopro-login-modal></shopro-login-modal>
	</view>
</template>

<script>
import shoprpCoupon from '@/components/shopro-coupon/shopro-coupon.vue';
export default {
	components: {
		shoprpCoupon
	},
	data() {
		return {
			dizhi: '',
			content:""
		};
	},
	onShow() {
		this.dizhi = uni.getStorageSync('dizhi');
		uni.removeStorageSync('dizhi');
		console.log('this.dizhi :>> ', this.dizhi);
	},
	onLoad() {
		// 进入不同的tab栏 stManagementMde warehouse
		//this.current = this.$route.query.id;

		//this.getCouponList();
		this.getUsers();
		this.agreement()
	},
	methods: {
		jump(path, query) {
			this.$Router.push({
				path: path,
				query: query
			});
		},
		// 获取用户的id
		async getUsers() {
			const res = await this.$api('user.info');
			this.usrData = {
				avatar: res.data.avatar,
				nickname: res.data.nickname
			};
			var uid = res.data.id;
			console.log('res :>> ', res);
		},
		async agreement() {
			const res = await this.$api('agreement');
			console.log('res :>> ', res);
			uni.setNavigationBarTitle({
				title:res.title
			})
			this.content = res.content
		}
	}
};
</script>

<style lang="scss">
.page_box {
	.content {
		width: 100vw;
		height: 100vh;
		overflow: scroll;
		background-color: #f5f8fd;
		.info {
			display: flex;
			align-items: center;
			margin: 0 auto;
			width: 690rpx;
			height: 100rpx;
			background: #ffffff;
			border-radius: 10rpx;
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #333333;
			margin-top: 30rpx;
			padding-left: 30rpx;
		}
	}
}
</style>
